//
//  LBCalendarContentView.h
//  Masonry
//
//  Created by 杨庆人 on 2018/4/24.
//  Copyright © 2018年 杨庆人. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LBCalendarPickerView.h"

@interface LBCalendarContentView : UIView
@property (nonatomic,copy)LBCalendarSelectBlock select;
@property (nonatomic,assign)LBCalendarTimeStampType timeStampType;
/**
 切换月份block，timeStamp：当月首日毫秒时间戳；dayNum：当月天数
 */
@property (nonatomic,copy)void (^monthButtonClick)(NSString *timeStamp,NSUInteger dayNum);
/**
 日历contentView
 
 @param frame frame
 @param type LBCalendarPickerType
//param format @"yyyy-MM-dd"，if nil 则只返回时间戳
 */
- (instancetype)initWithFrame:(CGRect)frame type:(LBCalendarPickerType)type;

- (instancetype)initWithFrame:(CGRect)frame type:(LBCalendarPickerType)type format:(NSString *)format;

+ (CGFloat)viewHight;


/**
 设置默认选中，不会触发selectBlock

 @param timeStamp 毫秒时间戳
 */
- (void)setDefaultSelectDay:(NSString *)timeStamp;


// 点击上个月、下个月的按钮，是否需要动画滑动，默认 YES
- (void)setLastOrNextMonButtonAnimated:(BOOL)animated;

// 选中上个月、下个月的日期，是否需要动画滑动，默认 YES
- (void)setLastOrNextMonDayAnimated:(BOOL)animated;

@end
